package com.swpu.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.swpu.seckill.pojo.Goods;
import com.swpu.seckill.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Oxygen
 * @since 2022-03-17
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 返回商品列表
     * @author Oxygen
     * @operation add
     * @param
     * @return java.util.List<com.example.seckilldemo.vo.GoodsVo>
     **/
    List<GoodsVo> findGoodsVo();

    /**
     * 根据商品ID查找商品详情列表
     * @return
     */
    GoodsVo findGoodsVoByGoodsId(@Param("goodsId") Long goodsId);
}
